package com.bzframework.pro.api.core.provider;

import com.bzframework.pro.api.core.OpenApiHeader;
import com.bzframework.pro.api.core.OpenApiQueryParam;
import lombok.Getter;
import lombok.Setter;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;

import java.util.Collections;
import java.util.List;

/**
 * @Author bingzhong
 * @Date 2025/3/3 14:55
 * @Description
 */
@Getter
@Setter
public class CompositeApiSupport implements ApiSupport {

    private String id;

    private String name;

    private String url;

    private HttpMethod method;

    private String demoUrl;

    private String responseType;

    private String description;

    private List<OpenApiHeader> headers;

    private List<OpenApiQueryParam> queryParam;

    @Override
    public String demoUrl() {
        return "";
    }

    @Override
    public String responseType() {
        return MediaType.APPLICATION_JSON_VALUE;
    }

    @Override
    public List<OpenApiHeader> headers() {
        return Collections.emptyList();
    }

    @Override
    public List<OpenApiQueryParam> queryParam() {
        return Collections.emptyList();
    }
}
